package com.sfd.sequential;

public class Sequential_Search {
	public static void main(String[] args) {
		int[] a = {1,3,4,5,6,78,9,7,10};
		
		System.out.println(search(a, 78));
	}
	
	public static int search(int[] a, int key){
		
		
		for(int i=0;i<a.length;i++){
			if(a[i]==key){
				return i;
			}
		}
		return -1;
				
	}
}
